package com.yt.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yt.project.model.entity.UpInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yt.project.model.entity.User;
import com.yt.project.model.vo.UpInfoVO;

import java.util.List;

/**
* @author lenovo
* @description 针对表【up_info】的数据库操作Service
* @createDate 2023-04-23 13:46:15
*/
public interface UpInfoService extends IService<UpInfo> {

    /**
     * 简单获取推荐
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<UpInfoVO> getRecommendUps(long pageNum, long pageSize);

    /**
     * 获取推荐的up主
     * @param loginUser
     * @param num 需要获取到的条数
     * @return
     */
    List<UpInfoVO> matchUps(User loginUser, long num);

}
